package com.zc58s.springbootmqtt.mqtt.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : fujc-dev@qq.com
 * @created : 2022/9/23 11:27
 */
@Data
public class PublishUpdateTagValReq {

    private int sn;
    private String wbtksn;
    private String cloudsn;
    private List<Dataarr> dataarr;

    public void setDataarr(Dataarr dataarrReq) {
        if (this.dataarr == null) {
            this.dataarr = new ArrayList<>();
        }
        this.dataarr.add(dataarrReq);
    }
}
